package ai.people.core.nebula.entity;

import com.vesoft.nebula.client.graph.net.Session;
import lombok.Builder;
import lombok.Data;

import java.util.List;

/**
 * @author zhenglin
 * @date 2022/6/25
 */
@Data
@Builder
public class NebulaTransaction {
    /**
     * 会话
     */
    private Session session;

    /**
     * gql 集合
     */
    private List<Gql> gqls;

    @Builder
    @Data
    public static class Gql {
        /**
         * 提交gql
         */
        private String commitGql;
        /**
         * 回滚gql 只支持INSERT VERTEX/EDGE
         */
        private String rollbackGql;
    }
}
